package com.nolydake.swingnote.util;

import java.io.File;

import javax.swing.ImageIcon;

/**
 * 图片工具类
 * 
 * @author NOLY DAKE
 *
 */
public class ImageUtil {

    public static ImageIcon loadImageIcon(String... path) {

        File file = new File(FileUtil.getResourceImagePath(), StringUtil.join(path, File.separatorChar));
        return new ImageIcon(file.getAbsolutePath());
    }
}
